{% extends "base.html" %}
{% block title %}{{ options.blog_name }}{% endblock %}
{% block content %}
{% if content %}
{{ content }}
{% else %}
<div class="stage">
<div class="stagepad">
		<div style="width:100%">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
				<tr><td class="modtl" width="7">&nbsp;</td>
				<td class="modtc" nowrap><div class="modhead"><span class="modtit">查看文章</span></div></td>
				<td class="modtc" nowrap align="right">{% if 6|power %}<div class="modopt"><a href="/admin/posts/new"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">写新文章</a></div>{% endif %}</td>
				<td class="modtr" width="7">&nbsp;</td>
				</tr>
			</table>
			<div id="m_blog" class="modbox">
				<div class="tit">{{ post.title }}</div>
				<div class="date">{{post.published|datetz:"Y/m/d H:i"}}</div>
				<table style="table-layout:fixed">
					<tr><td><div id="blog_text" class="cnt">{{ post.content|linebreaks }}</div></td></tr>
				</table>
				<div class="opt">Tag：{% for tag in post.get_tags %} <a href="/tag/{{tag.tag}}/">{{tag.tag}}</a> &nbsp;{% endfor %}</div>
				<div class="opt">
					类别：{% for cat in post.categories %}<a href="/category/{{ cat.category_url}}/" title="查看该分类中所有文章">{{ cat.category_name }}</a>&nbsp;{% endfor %}
					{% if 6|power %} 
					| <a href="/admin/posts/edit?id={{ post.key }}">修改</a> 
					| <a href="#" onClick="if(confirm('是否确定要删除该文章？')) location.href='/admin/posts/del?id={{ post.key }}';else return;">删除</a>
					{% endif %}
					{% if post.comments_enabled %}| <a href="/post/{{ post.permalink }}.html#comments" title="查看该文章的所有评论">评论{% if post.num_comments %}({{ post.num_comments }} 条评论){% endif %}</a> {% endif %}
					| <a href="/post/{{ post.permalink }}.html" title="浏览全文">浏览(<span id="fArea">[more..]</span>)</a></div>
				{% if post.comments_enabled %}
					{% include "mod_comment.html" %}
				{% endif %}
			</div>
		</div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
</div>
</div>
{% endif %}
{% endblock %}